import { post, get } from "@/utils/request";
import config from "@/config/api/adminConfig"

export const getAdminYhApi = async (page = 1) => {
  let ret = await get(config.getAdminYh + page)
  return ret
}

export const getAdminSearch = async (name) => {
  let ret = await post(config.getAdminSearch, name)
  return ret
}

export const getAdminDel = async (id) => {
  let ret = await post(config.getAdminDel, id)
  return ret
}